package com.example.profile.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-11-22
 * Time: 16:26
 */
@Component
@Data
//集合的在配置文件中的读取也需要@Configuration注解
@ConfigurationProperties("dbtypes")
public class ListConfig {
    //集合配置
    private List<String> name;
}
